import Vue from 'vue'
import App from './App.vue'
import router from '@/router/index.js'
import { request } from './api/request'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

/* 富文本*/
import tinymce from '../public/tinymce/tinymce'
import VueTinymce from '@packy-tang/vue-tinymce'
Vue.prototype.$tinymce = tinymce;
Vue.use(VueTinymce);
/* 二次封装  */
import vueTinymceEditor from '@/components/TmplTinymce';
Vue.component('TinymceEditor', vueTinymceEditor);

/* 图标选择器  */
import iconPicker from 'vue-fontawesome-elementui-icon-picker';
Vue.use(iconPicker);

/* 电子签组件  */
import vueEsign from 'vue-esign'
Vue.use(vueEsign)

Vue.config.productionTip = false
Vue.prototype.request = request  //全局注册request，其他文件可通过this.request使用分装好的axios实例
Vue.use(ElementUI)

new Vue({
  render: h => h(App),
  router
}).$mount('#app')
